import {request} from "./request.js";
//招聘者管理
//列表
export const Recruiter=(params)=>{
    return request({
        url:"/api/boss/boss/getBossList",
        method:'get',
        params
    })
}

//添加招聘者
export const AddBoss=(data)=>{
    return request({
        url:"/api/boss/boss/addBoss",
        method:'post',
        data
    })
}
//编辑招聘者
export const UpdateBoss=(data,id)=>{
    return request({
        url:"/api/boss/boss/updateBoss/"+id,
        method:'put',
        data
    })
}
//删除招聘者
export const DeleteBoss=(id)=>{
    return request({
        url:"/api/boss/boss/deleteBoss/"+id,
        method:'delete',
    })
}
//上传图片
export const UploadBoss=(data)=>{
    return request({
        url:"/api/boss/boss/avatar/upload",
        method:'post',
        data,
        headers: {
            'content-type': 'multipart/form-data'
        },
    })
}


